﻿"""返回首页流程"""
import allure

from page.home_page.home_dict import get_mall_xpath
from base.WebKeys import WebKeys

class homepage(WebKeys):
    def Commodity_home(self):
        with allure.step("商品详情 返回首页"):
            self.wait_click(get_mall_xpath('return_logo'))


    def Order_home(self):
        with allure.step("订单列表、卖家中心 返回首页"):
            self.wait_click(get_mall_xpath('dingdan_logo'))

    def Shopping_cart_home(self):
        with allure.step("进货单 收银台 返回首页"):
            self.wait_click(get_mall_xpath('jinhuodan_logo'))